package org.springblade.modules.platform.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class DeptInfoTableTreeVO {


    @ApiModelProperty(value = "部门编号")
    private Long id;
    /**
     * 部门类型
     */
    @ApiModelProperty(value = "部门类型 1：单位；2 测量量；3：测台")
    private Integer deptCategory;

    /**
     * 部门名
     */
    @ApiModelProperty(value = "部门名")
    private String deptName;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;


    @ApiModelProperty("父主键")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long parentId;

    private List<DeptInfoTableTreeVO> childrenList;




}
